/**
 * @author adagys
 */
package com.eu.chipin.backend;

public class Chipper {
	
	private String memberId;

	private long purchaseId;
	
	private float sum;
	
	/*
	 * Set to true if the chipper shares the total price evenly
	 * and then buys an additional item.
	 */
	private boolean additional = false;
	/*
	 * Set to true if the chipper does not share the total price
	 * and buys something separately
	 */
	private boolean exclude = false;
	
	/*
	 * additional and exclude flags have to be set separately
	 */
	public Chipper(String memberId, float sum) {
		super();
		this.memberId = memberId;
		this.sum = sum;
	}
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public long getPurchaseId() {
		return purchaseId;
	}
	public void setPurchaseId(long purchaseId) {
		this.purchaseId = purchaseId;
	}
	public float getSum() {
		return sum;
	}
	public void setSum(float sum) {
		this.sum = sum;
	}
	public boolean isAdditional() {
		return additional;
	}
	public void setAdditional(boolean additional) {
		this.additional = additional;
	}
	public boolean isExclude() {
		return exclude;
	}
	public void setExclude(boolean exclude) {
		this.exclude = exclude;
	}

}
